package com.lpf;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SentinelController {

    @SentinelResource(value = "sayHello") // 针对方法级别的限流
    public String sayHelloTo() {
        System.out.println("hello world");
        return "hello world";
    }

}
